

/**
 * @description 表单的模板数据
 * 
 */
const addDeaultData = {
  "version": "001",
  base: {
    okText: "提交",
    cancelText: "返回",
  },
  "box": {
    "classname": ".add-modal .ant-modal-content",
    "layout": "horizontal",
    "default": {
      "position": "relative",
      "backgroundColor": "#FFFFFF",
      "border": "0",
      "borderRadius": "8px",
      "boxShadow": "0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05)",
      "padding": "0",
      "margin": "0 auto",
      "maxWidth": "1150px",
      "minWidth": "720px"
    }
  },
  "header": {
    "classname": ".add-modal .ant-modal-header",
    "default": {
      "background": "#fed4bb",
      "borderRadius": "8px 8px 0 0",
      "marginBottom": "8px",
      "padding": "0",
      "height": "50px",
      "display": "flex",
      "justifyContent": "center",
      "alignItems": "center"
    }
  },
  "header_title": {
    "classname": ".add-modal .ant-modal-title",
    "default": {
      "color": "rgba(0, 0, 0, 0.88)",
      "fontSize": "20px"
    }
  },
  "close_icon": {
    "classname": ".add-modal .ant-modal-close",
    "default": {
      "position": "absolute",
      "top": "12px",
      "right": "12px",
      "zIndex": "1010",
      "padding": "0",
      "width": "32px",
      "height": "32px",
      "color": "rgba(0, 0, 0, 0.45)",
      "fontWeight": "600",
      "background": "transparent",
      "borderRadius": "4px"
    },
    "hover": {
      "color": "rgba(0, 0, 0, 0.88)",
      "background": "rgba(0, 0, 0, 0.06)"
    }
  },
  "footer": {
    "classname": ".add-modal .ant-modal-footer",
    "default": {
      "textAlign": "left",
      "background": "transparent",
      "margin": "12px 0 0 0",
      "padding": "20px 0 20px 40px",
      display: "flex",
      gap: "10px"
    }
  },
  "form": {
    "classname": ".add-modal .addform",
    "default": {
      "width": "100%",
      "height": "auto",
      "padding": "0",
      "margin": "20px 0 0 0",
      "background": "none"
    }
  },
  addform: {
    base: {
      layout: "horizontal",
      labelFlag: true,
      colonFlag: true
    },
    addform_item: {
      "classname": ".addform .ant-form-item",
      "default": {
        "display": "inline-block",
        "margin": "0 20px 24px 0",
        "padding": "0",
        "width": "calc(50% - 20px)",
        "height": "auto"
      }
    },
    addform_label: {
      "classname": ".addform .ant-form-item .ant-form-item-label >label",
      "default": {
        "width": "120px",
        "color": "rgba(0, 0, 0, 0.88)",
        "fontSize": "14px",
        "display": "inline-flex",
        "alignItems": "center",
        "justifyContent": "flex-end"
      }
    },
    addform_input: {
      "classname": ".addform .ant-input-affix-wrapper",
      "default": {
        "height": "auto",
        "width": "100%",
        "fontSize": "14px",
        "color": "rgba(0, 0, 0, 0.88)",
        "border": "1px solid #d9d9d9",
        "borderRadius": "6px",
        "background": "#fff"
      },
      "placeholderColor": "#123",
      "placeholderFontSize": "14px",
      "focus": {
        "border": "1px solid #4096ff",
        "boxShadow": "0 0 0 2px rgba(5, 145, 255, 0.1)"
      }
    },
    addform_input_icon: {
      "classname": ".addform .ant-input-affix-wrapper .anticon",
      "default": {
        "color": "rgba(0, 0, 0, 0.45)",
        "cursor": "pointer",
        "transition": "all 0.3s"
      },
      "hover": {
        "color": "rgba(0, 0, 0, 0.88)"
      }
    },
    addform_input_disable: {
      "classname": ".addform .ant-form-item .ant-input-affix-wrapper.ant-input-disabled, .addform .ant-form-item .ant-input-number.ant-input-number-disabled, .addform.ant-form .ant-form-item .ant-select.ant-select-outlined.ant-select-disabled .ant-select-selector, .addform .ant-form-item .ant-picker.ant-picker-disabled",
      "default": {
        "color": "rgba(0, 0, 0, 0.25)",
        "backgroundColor": "rgba(0, 0, 0, 0.04)",
        "borderColor": "#d9d9d9"
      }
    },
    addform_input_placeholder: {
      "classname": ".addform .ant-form-item input::placeholder, .addform .ant-form-item .ant-select-selection-placeholder",
      "default": {
        "fontSize": "inherit",
        "color": "rgba(0, 0, 0, 0.25)"
      },
    },
    addform_input_error: {
      "classname": ".addform .ant-form-item .ant-input-outlined.ant-input-status-error",
      "default": {
        "background": "#ffffff",
        "borderWidth": "1px",
        "borderStyle": "solid",
        "borderColor": "#ff4d4f"
      }
    },
    addform_number: {
      "classname": ".addform .ant-input-number",
      "default": {
        "width": "90px",
        "height": "auto",
        "lineHeight": "1.5714285714285714",
        "fontSize": "14px",
        "color": "rgba(0, 0, 0, 0.88)",
        "background": "#ffffff",
        "borderWidth": "1px",
        "borderStyle": "solid",
        "borderColor": "#d9d9d9",
        "borderRadius": "6px"
      },
      "focus": {
        "borderColor": "#1677ff",
        "boxShadow": "0 0 0 2px rgba(5, 145, 255, 0.1)",
        "outline": "0",
        "background": "#ffffff"
      }
    },
    addform_number_icon_box: {
      "classname": ".addform .ant-input-number .ant-input-number-handler-wrap",
      "default": {
        "width": "22px",
        "height": "100%",
        "background": "#ffffff",
        "border-start-end-radius": "6px",
        "border-end-end-radius": "6px"
      }
    },
    addform_number_icon_up: {
      "classname": ".addform .ant-input-number .ant-input-number-handler-up",
      "default": {
        "color": "rgba(0, 0, 0, 0.45)",
        "border-inline-start": "1px solid #d9d9d9",
        "border-start-end-radius": "6px"
      }
    },
    addform_number_icon_down: {
      "classname": ".addform .ant-input-number .ant-input-number-handler-down",
      "default": {
        "color": "rgba(0, 0, 0, 0.45)",
        "border-inline-start": "1px solid #d9d9d9",
        "border-block-start": "1px solid #d9d9d9",
        "border-end-end-radius": "6px"
      }
    },
    addform_select: {
      "classname": ".addform.ant-form .ant-form-item .ant-select.ant-select-outlined .ant-select-selector",
      "default": {
        "height": "auto",
        "fontSize": "14px",
        "color": "rgba(0, 0, 0, 0.88)",
        "border": "1px solid #d9d9d9",
        "borderRadius": "6px",
        "background": "#fff"
      },
      focus: {
        "border-color": "#1677ff",
        "box-shadow": "0 0 0 2px rgba(5, 145, 255, 0.1)",
        "outline": "0"
      }
    },
    addform_select_icon: {
      "classname": ".addform .ant-select .ant-select-arrow",
      "default": {
        "position": "absolute",
        "top": "50%",
        "height": "12px",
        "margin": "-6px 0 0 0",
        "fontSize": "inherit",
        "color": "rgba(0, 0, 0, 0.25)"
      }
    },
    addform_date: {
      "classname": ".addform .ant-form-item .ant-picker",
      "default": {
        "height": "auto",
        "fontSize": "14px",
        "color": "rgba(0, 0, 0, 0.88)",
        "background": "#ffffff",
        "borderWidth": "1px",
        "borderStyle": "solid",
        "borderColor": "#d9d9d9",
        "padding": "4px 11px 4px",
        "borderRadius": "6px"
      },
      focus: {
        "border-color": "#1677ff",
        "box-shadow": "0 0 0 2px rgba(5, 145, 255, 0.1)",
        "background-color": "#ffffff",
      }
    },
    addform_date_icon: {
      "classname": ".addform .ant-picker .ant-picker-suffix, .addform .ant-picker .ant-picker-clear",
      "default": {
        "flex": "none",
        "margin": "0 0 0 4px",
        "fontSize": "inherit",
        "color": "rgba(0, 0, 0, 0.25)"
      }
    },
    addform_textarea: {
      "classname": ".addform textarea.ant-input",
      "default": {
        "height": "auto",
        "fontSize": "14px",
        "color": "rgba(0, 0, 0, 0.88)",
        "background": "#ffffff",
        "maxWidth": "100%",
        "minHeight": "32px",
        "borderWidth": "1px",
        "borderStyle": "solid",
        "borderColor": "#d9d9d9"
      },
      "focus": {
        "border": "1px solid #4096ff",
        "boxShadow": "0 0 0 2px rgba(5, 145, 255, 0.1)",
        "background": "#ffffff"
      }
    },
    addform_face: {
      "classname": ".addform .ant-form-item .face-btn",
      "default": {
        "color": "#1677ff",
        "fontSize": "14px",
        "lineHeight": "1.5714285714285714",
        "height": "24px",
        "padding": "0px 7px",
        "borderRadius": "0"
      },
      "hover": {
        "color": "#69b1ff",
        "background": "transparent"
      }
    },
    addform_fileupload: {
      "classname": ".addform .ant-form-item .ant-upload-wrapper .ant-upload.ant-upload-select",
      "default": {
        "fontSize": "14px",
        "color": "inherit",
        "backgroundColor": "rgba(0, 0, 0, 0.02)",
        "border": "1px dashed #d9d9d9",
        "borderRadius": "8px"
      },
      "hover": {
        "borderColor": "#1677ff"
      }
    },
    addform_ql: {
      "classname": ".addform .quill",
      "default": {
        "background": "none"
      }
    },
    addform_ql_header: {
      "classname": ".addform .ql-toolbar.ql-snow",
      "default": {
        "border": "1px solid #ccc",
        "background": "none"
      }
    },
    addform_ql_container: {
      "classname": ".addform .ql-container.ql-snow",
      "default": {
        "border": "1px solid #ccc"
      }
    },
    addform_smsbtn: {
      classname: ".addform .ant-form-item .email-btn",
      "default": {
        height: "32px",
        width: "auto",
        "fontSize": "14px",
        "color": "rgba(0, 0, 0, 0.88)",
        margin: "0px 0px 0px 10px",
        background: "#ffffff",
        borderColor: "#d9d9d9",
        boxShadow: "0 2px 0 rgba(0, 0, 0, 0.02)",
        borderRadius: "6px",
      },
      "hover": {
        color: "#4096ff",
        borderColor: "#4096ff",
        background: "#ffffff"
      }
    },
  },

  "ok_btn": {
    "classname": ".add-modal .ant-modal-footer >button:nth-child(2)",
    "default": {
      order: "1",
      "width": "auto",
      "height": "32px",
      "fontSize": "14px",
      "color": "#fff",
      "background": "#1677ff",
      "margin": "0",
      "padding": "4px 15px",
      "lineHeight": "1.5714285714285714",
      "borderRadius": "6px",
      "border": "1px solid transparent"
    },
    "hover": {
      "color": "#fff",
      "background": "#4096ff"
    }
  },
  "cancel_btn": {
    "classname": ".add-modal .ant-modal-footer >button:nth-child(1)",
    "default": {
      order: "2",
      "position": "relative",
      "fontSize": "14px",
      "color": "rgba(0, 0, 0, 0.88)",
      "background": "#ffffff",
      "height": "32px",
      "border": "1px solid #d9d9d9",
      "borderRadius": "6px",
      "boxShadow": "0 2px 0 rgba(0, 0, 0, 0.02)"
    },
    "hover": {
      "color": "#4096ff",
      "border": "1px solid #4096ff",
      "background": "#ffffff"
    }
  },
  "css": "/* 新增编辑的样式 */"
}

export default addDeaultData